 	<li class="page-btn" id="page_first"><a href="javascript:void(0);">首页</a></li>
    <li class="page-btn" id="page_pre"><a href="javascript:void(0);">&laquo;</a></li>
    
    <#if (pager.number + 1 -3<=0)>
		<#list 0..6 as t>
			<#if (pager.totalPages >= t_index + 1)>
                <#if (pager.number + 1 == t_index + 1)><li class="current" ><a href="javascript:void(0);" onclick="toPageNum('${pager.number + 1}');">${pager.number + 1}</a></li></#if>
                <#if (pager.number + 1 != t_index + 1)><li><a href="javascript:void(0);" onclick="toPageNum('${t_index + 1}');">${t_index + 1}</a></li></#if>
            </#if>
		</#list>
		
		<#if (pager.totalPages > 7)>
			<li class="pages-dot"><a href="javascript:void(0);" >...</a></li>
			<!-- 总页 -->
			<li><a href="javascript:void(0);" onclick="toPageNum('${pager.totalPages}');">${pager.totalPages}</a></li>
		</#if>
    </#if>

    <#if (pager.number + 1 -3 > 0)>
        <#list 0..6 as t>
            <#if (pager.totalPages >= pager.number + 1 -3 + t_index )>
                <#if (pager.number + 1 == pager.number + 1 -3 + t_index)><li class="current" ><a href="javascript:void(0);" onclick="toPageNum('${pager.number + 1}');">${pager.number + 1}</a></li></#if>
                <#if (pager.number + 1 != pager.number + 1 -3 + t_index)><li><a href="javascript:void(0);" onclick="toPageNum('${pager.number + 1 -3 + t_index}');">${pager.number + 1 -3 + t_index}</a></li></#if>
            </#if>
        </#list>
        
        <#if (pager.totalPages > pager.number + 1 + 3 )>
        	<li class="pages-dot"><a href="javascript:void(0);" >...</a></li>
        	<!-- 总页 -->
			<li><a href="javascript:void(0);" onclick="toPageNum('${pager.totalPages}');">${pager.totalPages}</a></li>
        </#if>
    </#if>
	
    <li class="page-btn" id="page_next"><a href="javascript:void(0);">&raquo;</a></li>
    <li class="page-btn" id="page_last"><a href="javascript:void(0);">尾页</a></li>


<script>
jQuery(document).ready(function(){
	
	var currentPage = ${pager.number + 1};//当前页
	var totalPages = ${pager.totalPages?c};// 总页数
	
    // 首页
    jQuery('#page_first').click(function(){
    	if(totalPages == 0){
    		return;
    	}
    	repreList('1');
    });

    // 上一页
    jQuery('#page_pre').click(function(){
    	var prePage = currentPage -1;
    	if(prePage>0&&totalPages>prePage){
    		repreList(prePage);
    	}
    });

    // 下一页
    jQuery('#page_next').click(function(){
        var nextPage = currentPage +1;
        if(nextPage>0&&totalPages>=nextPage){
        	repreList(nextPage);
        }
    });

    // 尾页
    jQuery('#page_last').click(function(){
        var lastPage = totalPages;
        repreList(lastPage);
    });

});

// 页数
function toPageNum(currentPage){
   repreList(currentPage);
}

</script>